package csc.daonjpa.java.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "admin")
public class Admin implements Serializable{
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "id_admin")
	private Long adminId;
	
	@Column(name = "loginid", unique = true)
	private String loginId;
	
	@Column(name = "role")
	private String role;
	
	@Column(name = "password")
	private String password;

	public Admin() {
		super();
	}

	public Admin(Long adminId, String username, String role, String password) {
		super();
		this.adminId = adminId;
		this.loginId = username;
		this.role = role;
		this.password = password;
	}

	public Long getAdminId() {
		return adminId;
	}

	public void setAdminId(Long adminId) {
		this.adminId = adminId;
	}

	public String getUsername() {
		return loginId;
	}

	public void setUsername(String username) {
		this.loginId = username;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
}
